import {
  Component,
  OnInit,
  AfterViewInit,
  AfterContentInit,
  ViewChild,
  ElementRef,
  ViewChildren,
  QueryList,
  ContentChildren
} from '@angular/core';
import {Router, ActivatedRoute, ParamMap} from '@angular/router';
import 'rxjs/add/operator/switchMap';
import {NzModalService, NzMessageService} from 'ng-zorro-antd';


@Component({
  selector: 'freight-page',
  templateUrl: './freight.component.html',
  styleUrls: ['./freight.component.scss'],
  providers: []
})

export class FreightComponent implements OnInit {
  pageSize=10;
  loading=false;
  goodsList=[
    {
      name:"发达地区运费模板",
      list:[{range:"全国默认地区",type:"快递",starting_weight:11,exceed_weight:11,starting_weight_price:111000,exceed_weight_price:111000},
            {range:"浙江,北京",type:"快递",starting_weight:11,exceed_weight:11,starting_weight_price:111000,exceed_weight_price:111000}
      ]},
    {name:"偏远地区运费模板",list:[{range:"全国默认地区",type:"快递",starting_weight:11,exceed_weight:11,starting_weight_price:111000,exceed_weight_price:111000}]}
  ];
  total=0;
  page=1;

  ngOnInit() {
    // this.freight
  }

  constructor(private router: Router) {

  }

  changIndex(index){

  }

  goAddFreight() {
    this.router.navigate(['member/freight/add']);
  }
}
